import request from '@/utils/request'

// 1.本年获取产销统计数据
export function salesSummary(yearMonth) {
  return request({
    url: '/market/production/salesSummary',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

// 2.获取本月产销统计数据
export function monthlySalesSummary(yearMonth) {
  return request({
    url: '/market/production/monthlySalesSummary',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 3.获取昨日产销统计数据
export function dailySalesSummary(yearMonth) {
  return request({
    url: '/market/production/dailySalesSummary',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 4.本月各产品每日销量柱状图数据
export function monthlyProductSales(yearMonth) {
  return request({
    url: '/market/production/monthlyProductSales',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

// 5.本月各产品销量分布饼状图
export function monthlyProductPie(yearMonth) {
  return request({
    url: '/market/production/monthlyProductPie',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

//6.昨日各产品销量分布饼状图
export function dailyProductPie(yearMonth) {
  return request({
    url: '/market/production/dailyProductPie',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

